#ifndef VIDEOMODEL_H
#define VIDEOMODEL_H

#include "model/singletonbd.h"
#include "model/usermodel.h"

class VideoModel
{
public:
    static VideoModel *getInstance();


    /**
     * @brief InsertVideo       插入视频
     * @param videoPath         视频路径
     * @param videoheadPath     视频封面
     * @param videoDate         视频日期
     * @param userId            用户id
     * @return
     */
    int InsertVideo(QString videoPath, QString videoheadPath, QString videodate, int fps,int userId);

    int selectVideo(char **&qres, int &row, int &col);

    int selectFps(QString path, char**& qres, int &row, int &col);

//    int selectVideoList(QString path, char **&qres, int &row, int &col);

private:
    VideoModel();
    static VideoModel *instance;
};

#endif // VIDEOMODEL_H
